<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="<?php echo site_url("admin/index") ?>">系统首页</a>
							</li>
                            <li class="active">
								网站管理
							</li>
                            <li class="active">
								网站设置
							</li>
							
						</ul><!-- .breadcrumb -->
					</div>

					<div class="page-content">
                    	<div class="row">
                    	     <div class="page-header">
				                <h1>网站设置</h1>
			                 </div>
                            	<form action="<?php echo base_url() . "admin/website/setup"?>" method="post" id="usrform" class="form-table">
                                	<div class="col-xs-12 margin_t margin_b">
                                	<?php if (validation_errors()!=''){?>
	                                       <div id="info_msg" class="alert alert-danger"><?php echo validation_errors();?></div>
                                    <?php }?>
										<div class="table-responsive  tab">
											<table id="sample-table-1" class="table table-striped table-bordered table-hover">
												<tbody>
												<?php if (isset($result)&&count($result)>0){
                            							foreach ($result as $doctor_flup){
                            						?>			
													<tr>
                                                        <td style="width:15%;">
                                                        	<div style="float: right;">
                                                        		<span style="color: red;">*</span>
                                                        		<span><?php echo $doctor_flup->name;?>：</span>
                                                        	</div>
                                                        </td>
                                                        <td class="form-group"><?php
                                                        		if($doctor_flup->type == 'text'){
                                                        	?>		
                                                        			<input type="text" class="col-xs-9" name="<?php echo $doctor_flup->key;?>" value ="<?php if (validation_errors()!='')echo set_value($doctor_flup->key);else echo $doctor_flup->value;?>" check-type="required"/>
                                                        	<?php 
																}elseif($doctor_flup->type == 'file'){
															?>
																	<input id="jpg_file" class="col-xs-9" name="<?php echo $doctor_flup->key;?>" type="text" placeholder="选择上传..." value="<?php if (validation_errors()!='')echo set_value($doctor_flup->key);else echo $doctor_flup->value;?>" readonly="true" check-type="required" />
																	<a style="height: 27px;border-radius:0px;padding: 2px 12px;" href="<?php echo site_url("admin/upyun/upload_modal/jpg_file")?>" data-target="#uploadModal" data-toggle="modal" class="btn btn-info">上传图片</a>
															<?php
																}elseif($doctor_flup->type == 'textarea'){
                                                        	?>
                                                        			<textarea name="<?php echo $doctor_flup->key;?>" rows="8" cols="" class="col-xs-9" check-type="required"><?php if (validation_errors()!='')echo set_value($doctor_flup->key);else echo $doctor_flup->value;?></textarea>
                                                        	<?php
																}
															?>	
                                                        </td>
                                                    </tr>
												<?php
												}
												}?>
												</tbody>
											</table>
										</div><!-- /.table-responsive -->
									</div>
									<div class="clearfix form-actions">
										<div class="col-md-offset-3 col-md-9">
											<button class="btn btn-info" type="submit" id="btnSubmit">
												<i class="icon-ok bigger-110"></i>
												保存
											</button>
										</div>
									</div>
								</from>
						</div><!-- /.page-content -->
				</div><!-- /.main-content -->
                
			</div><!-- /.main-container-inner -->
			
<script type="text/javascript">
$("#usrform").validation();
//保存
$("#btnSubmit").on('click',function(event){
  // 2.最后要调用 valid()方法。
  if ($("#usrform").valid()==false){
    return false;
  }
});
</script>